﻿<Window x:Name="win_main" x:Class="FontInstaller.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Dodaj Font" Height="371" Width="525" Closing="DataWindow_Closing" Icon="Main.ico">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10*"/>
            <ColumnDefinition Width="167*"/>
            <ColumnDefinition Width="248*"/>
            <ColumnDefinition Width="92*"/>
        </Grid.ColumnDefinitions>
        <Grid.Background>
            <ImageBrush/>
        </Grid.Background>
        <ListBox x:Name="lbx_font" Margin="10,64,20,40"  ItemsSource="{Binding TheList}" PreviewDrop="lbx_file_PreviewDragOver" AllowDrop="True" SelectionMode="Multiple" Grid.ColumnSpan="3" Grid.Column="1">
            <ListBox.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Delete" Click="MenuItemDelete_Click">
                        <MenuItem.Icon>
                            <Image Source="delete.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </ContextMenu>
            </ListBox.ContextMenu>
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <CheckBox IsChecked="{Binding IsSelected}" Content="{Binding TheText}"/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <StatusBar x:Name="stb_status" Height="18" VerticalAlignment="Bottom" Background="#FFD3D3D3" Grid.ColumnSpan="4">
            <TextBlock x:Name="lbl_statusBar" TextWrapping="Wrap" Width="507" FontSize="9"/>
        </StatusBar>
        <Image x:Name="btn_file" Margin="10,11,0,0" HorizontalAlignment="Left" Width="50" Height="50" VerticalAlignment="Top" Cursor="Hand" MouseUp="btn_file_Click" Grid.Column="1">
            <Image.Style>
                <Style TargetType="{x:Type Image}">
                    <Setter Property="Source" Value="add.png"/>
                    <Style.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Source" Value="add-ow.png"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </Image.Style>
        </Image>
        <Image x:Name="btn_rem" Margin="60,11,0,0" HorizontalAlignment="Left" Width="50" Height="50" VerticalAlignment="Top" Cursor="Hand" MouseUp="btn_rem_Click" Grid.Column="1">
            <Image.Style>
                <Style TargetType="{x:Type Image}">
                    <Setter Property="Source" Value="rem.png"/>
                    <Style.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="Source" Value="rem-ow.png"/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </Image.Style>
        </Image>


    </Grid>
</Window>
